<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'news_right.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="mystyle.css">
	

  </head>
  
  <body>
  <div class="news_right">
  	<s:iterator id="n" value="newtypeList" status="index">
  		<div class="new_type" align="left"><h3><s:property value="newTypeName"/></h3></div>
  		<s:if test="newTypeId==1">
  		<s:iterator id="a" value="#request.newsList0" status="d">
  			<div class="news_title" align="left">
  			<a href="gongxu/new_newsinfo.shtml?newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a></div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==2">
  		<s:iterator id="a" value="#request.newsList1" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==3">
  		<s:iterator id="a" value="#request.newsList2" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==4">
  		<s:iterator id="a" value="#request.newsList3" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==5">
  		<s:iterator id="a" value="#request.newsList4" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==6">
  		<s:iterator id="a" value="#request.newsList5" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==7">
  		<s:iterator id="a" value="#request.newsList6" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  		<s:if test="newTypeId==8">
  		<s:iterator id="a" value="#request.newsList7" status="d">
  			<div class="news_title" align="left"><a href="gongxu/new_newsinfo.shtml?newsInfo.newsId=<s:property value="newsId" />"><li><s:property value="title"/></li></a> </div>
  		</s:iterator>
  		</s:if>
  	</s:iterator>
  <div>
  </body>
</html>
